package com.house.service;

import com.house.entity.Accusation;
import com.house.mapper.AccusationMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class AccusationService {

    @Autowired
    private AccusationMapper accusationMapper;


    public List<Accusation> findAll(){

        return accusationMapper.findAll();
    }

    public void  deleteById(int id){

        accusationMapper.deleteById(id);
    }

    public void insertOne(int userId,int houseId,String result,String inf){
        accusationMapper.insertOne(userId,houseId,inf,result);
    }
}
